import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import tools from './utils/tools.js'
import ajax from './utils/ajax.js'
import './uni.promisify.adaptor'
import './static/css/style.css'
Vue.prototype.$tools = tools
Vue.prototype.$Ajax = ajax

// 引入uview-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);

// 引入通用函数
import {parseTime} from '@/utils/utils'
Vue.prototype.parseTime = parseTime


Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif